package cn.hiapi.shop.vo;

import cn.hiapi.basic.entity.BasicEntity;
import cn.hiapi.basic.serializer.LongToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.List;

/**
 * @author AdinZ
 * @date 2023/1/31 0:24
 */
@Setter
@Getter
public class CommentVo extends BasicEntity {
    @Id
    @JSONField(serializeUsing = LongToStringSerializer.class)
    private Long id;
    @ApiModelProperty("匿名 0 不匿名,1匿名")
    private int anonymous;
    private String[] thumbs;
    @ApiModelProperty("评论内容")
    private String body;
    @ApiModelProperty("评分类型 1 好评, 2中评, 3差评")
    private int scoreType;
    @ApiModelProperty("主评分")
    private int primaryScore;
    @ApiModelProperty("次要评分")
    private int secondaryScore;
    @ApiModelProperty("服务评分")
    private int serviceScore;
    @ApiModelProperty("创建时间")
    private long created = System.currentTimeMillis();

    @ApiModelProperty("用户资料")
    private Object user;
    @ApiModelProperty("商家回复")
    private List<CommentVo> replyList;


    @ApiModelProperty("订单信息")
    private Object order;
}
